//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");

        AbstractProductTV myTV;
        AbstractProductWashingMachine myWashingMachine;
        AbstractProductFridge myFridge;

        IAbstractFactoryHouseholdAppliances factory = new FactoryMidea();
        myTV = factory.createProductTV();
        myFridge = factory.createProductFridge();
        myWashingMachine = factory.createProductWashingMachine();

        System.out.println(myTV.ShowName());
        System.out.println(myFridge.ShowInfo());
        System.out.println(myWashingMachine.ShowInfo());


    }
}